import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../App.vue'),
    },
    {
      path: '/search/:type',
      name: 'search',
      component: () => import('../views/SearchView.vue'),
    },
    {
      path: '/faves',
      name: 'faves',
      component: () => import('../views/FivesView.vue'),
    },
    {
      path: '/dir',
      name: 'dir',
      component: () => import('../views/DirView.vue'),
    },
  ],
})

export default router
